<?php foreach($info as $objProductCategoryDetail){ $image = explode(",", $objProductCategoryDetail->images) ?>
    <div class="col-lg-3" style="cursor: pointer; border: 1px solid grey; width: 220px; margin: 5px; height: 280px; overflow: auto;" onclick="window.location.href = '<?php echo base_url() ?>product/view/<?php echo $objProductCategoryDetail->id ?>/title=<?php echo preg_replace('/\s+/', '+', $objProductCategoryDetail->product_name).'.html' ?>'">
        <?php if($image[0] != ''){ ?>
        <div class="row" style="text-align: center"><img style="width: 185px; height: 130px;" src="<?php echo base_url() ?>uploads/<?php echo $image[0] ?>"></div>
        <?php }else{ ?>
        <div class="row" style="text-align: center"><img style="width: 185px; height: 130px;" src="<?php echo base_url()."assets/images/no_image.png" ?>"></div>
        <?php } ?>
        <div class="row" style="text-align: center; height: 60px; overflow: auto; margin-top: 10px;"><b><?php echo $objProductCategoryDetail->product_name ?></b></div>
        <div class="row" style="margin-top: 10px; text-align: center"><button class="btn btn-success"><span class="glyphicon glyphicon-chevron-right"></span> Xem chi tiết</button></div>
    </div>
<?php } ?>
